package unilearn.domain;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.File;

/**
 *
 *@author ??? insert here ???
 *@author Ben Morall, 4158768
 *@version 0.1, 27 April 2008, initial creation.
 *@version 0.2, 30 April 2008, Added fileID to Constructor, blm
 */
public class DataFile {
    private final long fileID;
    private String fileName;
    private String fileType;
    private long fileSize;
    private File fileRef = null;
    
    public DataFile(long fileID) {
        this.fileID = fileID;
    }
    
    public long getFileID() {
        return this.fileID;
    }
    
    public String getFileName() {
        return this.fileName;
    }
    
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    
    public void setFileType(String fileType) {
        this.fileType = fileType;
    }
    
    public String getFileType() {
        return this.fileType;
    }
    
    public void setFileSize(long size) {
        this.fileSize = size;
    }
    
    public long getFileSize() {
        return this.fileSize;
    }
    
    public void setFile(File fRef) {
        this.fileRef = fRef;
    }
    
    public File getFile() {
        return this.fileRef;
    }
    
}
